<?php

namespace App\Console\Commands;


use App\Models\CollectGoods;
use App\Models\Product;
use App\Models\ProductAdded;
use App\Services\CollectService;
use App\Services\ImageService;
use Illuminate\Console\Command;

class CollectCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'goods:resize';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        /*$this->info('开始生成缩略图~');
        $products = Product::get();
        $image = app(ImageService::class);
        foreach ($products as $item){
            $image->resize_product($item);
        }
        $this->info('生成完毕~');*/
    }
}
